<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>欢迎来到巩义市星创净水材料厂！</title>
<?php echo ($style); ?>
<link href="/xingc/Public/home/style/public.css" rel="stylesheet" type="text/css">
<script src="/xingc/Public/home/style/jquery.js"></script>
<!--<script src="/xingc/Public/home/style/banner.js"></script>-->
</head>

<body>

<div class="blue">
  <div class="head">
    <span>全国统一服务热线：<i>15503718231</i>&nbsp;&nbsp;&nbsp;&nbsp;<i>15638267137</i></span>
    <p class="head-link"><a class="icon-online" href="#">在线留言</a>|<a class="icon-kefu" href="#">联系客服</a></p>
  </div>
</div>

<div class="header-nav">
  <a href="#"><img class="logo" src="/xingc/Public/home/images/logo.png" alt="巩义市星创净水材料厂"></a>
  <ul class="navul">
    <?php if(is_array($cate)): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="<?php echo U($vo['contro_name'].'/index');?>"><?php echo ($vo["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
  </ul>
</div>

<div class="banner_container">
    <div class="banner">
      <?php if(is_array($pict)): $i = 0; $__LIST__ = $pict;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><img src="/xingc/Public/uploads/<?php echo ($vo["image"]); ?>"><?php endforeach; endif; else: echo "" ;endif; ?>
    </div>
    <ul class="banner_btn">
      <li class=" "></li>
      <li class="currentLi"></li>
      <li class=" "></li>
    </ul>
  </div>

<div class="gonggao">
  <div class="w1200"> 
      <img src="/xingc/Public/home/images/zkgg.png" alt="" title="">
      <div class="scrollDiv" id="s1">
      <ul style="margin-top: 0px;">
        <li><a href="">+&nbsp;&nbsp;2017年新款生产设备已上市，欢迎新老客户咨询选购！</a><span>2016-12-20</span></li>
        <li><a href="">+&nbsp;&nbsp;2016年冬季大促销活动开始，购买均可享受折扣价优惠！</a><span>2017-03-20</span></li>
      </ul>
    </div>
    <script type="text/javascript">
  function AutoScroll(obj){
    $(obj).find("ul:first").animate({
      marginTop:"-25px"
    },500,function(){
      $(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
    });
  }
  $(document).ready(function(){
    setInterval('AutoScroll("#s1")',3000);
  });
  </script>
      <p class="gonggao-txt"> 
      <a href="#">净水活性炭系列</a>  
      <a href="#">净水滤芯系列</a>  
      <a href="#">净水药剂系列</a>
    </p>   
  </div>
</div>

<div class="index_unit">
	<div class="sub_left">
            <div class="left_menu">
            <div class="left_menu_title"><?php echo ($top["name"]); ?></div>
            <div class="left_menu_con">
                <div class="sideMenu" style="margin:0 auto">
                    <?php if(is_array($cate_list)): $i = 0; $__LIST__ = $cate_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><h3 ><em></em><a href="<?php echo U('index',array('id'=>$vo['id']));?>"><?php echo ($vo["name"]); ?></a></h3>
                    <ul>
                        <?php if(is_array($vo['children'])): $i = 0; $__LIST__ = $vo['children'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li ><a href="<?php echo U('index',array('id'=>$v['id']));?>"><?php echo ($v["name"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul><?php endforeach; endif; else: echo "" ;endif; ?>
                </div><!-- sideMenu End -->
                <script type="text/javascript">
                jQuery(".sideMenu").slide({titCell:"h3 em",targetCell:"ul",trigger:"click"});
                </script>
            </div> 
        </div>
  	<div class="left_lxwm">
        <div class="title02">
            <div class="title02_cn">联系我们</div>
            <div class="title02_more"><a href="<?php echo U('Lxwm/index');?>">+ MORE</a></div>
            <div class="clear"></div>
        </div>
        <div class="left_lxwm_con">
        	<h1><img src="/xingc/Public/home/images/lianx.jpg"></h1>
            <p><strong><?php echo ($config["company"]); ?></strong></p>
            <p>销售热线：400-7167-505</p>
            <p>植保热销：<?php echo ($config["tel"]); ?></p>
            <p>邮箱：<?php echo ($config["email"]); ?></p>
            <p>网址：<?php echo ($config["website"]); ?></p>
            <p>公司地址：<?php echo ($config["address"]); ?></p>
        </div>
    </div>
</div>
	<div class="sub_right">
		<div class="title02">
            <div class="title02_cn"><?php echo ($fenlei["name"]); ?></div>
            <div class="title02_more">当前所在位置：<a href="<?php echo U('Index/index');?>">首页</a> > <a href="<?php echo U('index');?>"><?php echo ($top["name"]); ?></a> > <a href="<?php echo U('index',array('id'=>$fenlei['id']));?>"><?php echo ($fenlei["name"]); ?></a></div>
            <div class="clear"></div>
        </div>
        <div class="sub_main">
            <div class="news_view">
                <div class="news_view_title"><?php echo ($data["name"]); ?></div>
                <div class="news_view_subtitle">作者：admin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;时间：<?php echo date('Y-m-d',$data['publish_time']);?>&nbsp;&nbsp;&nbsp;&nbsp;点击：<?php echo ($data["pv"]); ?>&nbsp;次</div>
                <div class="news_view_con">
                <?php echo ($data["content"]); ?>
                </div>
            </div>
          <div class="news_fenye">
                <span>上一篇：</span><?php if(empty($prev)): ?>没有了
					<?php else: ?><a href="<?php echo U('info',array('id'=>$prev['id']));?>"><?php echo ($prev["name"]); ?></a><?php endif; ?><br>
                <span>下一篇：</span><?php if(empty($next)): ?>没有了
					<?php else: ?><a href="<?php echo U('info',array('id'=>$next['id']));?>"><?php echo ($next["name"]); ?></a><?php endif; ?></a>
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
<div class="gr_footer blue">
  <div class="footer gr_width">
   <p class="foot_nav"> 
      <?php if(is_array($cate)): $k = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><a href="<?php echo U($vo['contro_name'].'/index');?>"><?php echo ($vo["name"]); ?></a> <?php if($k != count($cate)): ?><span>|</span><?php endif; endforeach; endif; else: echo "" ;endif; ?>

      <!-- <a title="产品展示" href="#">产品展示</a><span>|</span>
      <a title="新闻中心" href="#">新闻中心</a><span>|</span>
      <a title="客户案例" href="#">客户案例</a><span>|</span>
      <a title="关于星创" href="#">关于星创</a><span>|</span>
      <a title="联系我们呢" href="#">联系我们</a> -->
      </p>
    <div class="foot_left">
      <h2 class="foot_logo"> <a href=""><img src="/xingc/Public/home/images/logo_b.png" alt="" width="100%;"></a> </h2>
      
    <div class="clearfix"></div>
    </div>
    <div class="foot_right">
      <p class="p02">
      <span class="sp01">全国咨询电话：<?php echo ($config["tel"]); ?></span>
      <span class="sp01">地址：<?php echo ($config["address"]); ?></span> 
      <span class="sp01">手机：<?php echo ($config["phone"]); ?></span>
      </p>
           <p class="p02">
            Copyright © 0000000 www.xh.com&nbsp;&nbsp;&nbsp;&nbsp;版权所有<span><a style="color:#b9d4e7;" href="#" target="_blank">豫ICP000000号</a></span>&nbsp;&nbsp;&nbsp;&nbsp; <span>技术支持：<a style="color:#b9d4e7;" href="http://www.hohu.com.cn" target="_blank">红狐企业网</a></span>
    </p>
    </div>
  </div>
</div>
<script>
  
  /*重新设置banner宽度*/
$(".banner").css({width:1920*$(".banner img").length});
/*记录播放索引值*/
var n=0;
/*播放函数*/
function runLeft(){
  if(n<2){
  n=n+1;
  }else{
  $(".banner").css({marginLeft:-960});
  n=1;
  }
  $(".banner").stop().animate({marginLeft:(-960-1920*n)},1000);
  $(".banner_btn li").removeClass("currentLi");
  if(n==$(".banner img").length-1){
  $(".banner_btn li").eq(0).addClass("currentLi");
  }else{   
  $(".banner_btn li").eq(n).addClass("currentLi");  
  }
}
var timer=setInterval(runLeft,4000);
/*按钮控制*/
$(".banner_btn li").hover(function(){
  clearInterval(timer);
  n = $(".banner_btn li").index(this);
  $(".banner").stop().animate({marginLeft:(-960-1920*n)},1000);
  $(".banner_btn li").removeClass("currentLi");
  $(this).addClass("currentLi");
},function(){
  timer=setInterval(runLeft,4000);
})
</script>
</body>
</html>